package com.qian.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@MapperScan("com.qian.dao")
@Configuration
//mybatis核心配置文件
public class MybatisConfig {

    @Bean
    //注册拦截器
    public MyInterceptor myInterceptor(){
        return new MyInterceptor();
    }

}
